package com.d0312;

public class OuterClass1 {
    private String name;
    private int age;

    public void show() {
        class InnerClass {
            public InnerClass() {
                name = "john";
            }

            public void display() {
                System.out.println(name + "\t" + age);

            }
        }
        InnerClass innerClass = new InnerClass();
        innerClass.display();
    }
}


